.class Lcom/nemustech/regina/ReginaLauncherSettings$13$1;
.super Ljava/lang/Object;
.source "ReginaLauncherSettings.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaLauncherSettings$13;->onPreferenceClick(Landroid/preference/Preference;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaLauncherSettings$13;)V
    .locals 0
    .parameter

    .prologue
    .line 393
    iput-object p1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 7
    .parameter "dialog"
    .parameter "which"

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 395
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncherSettings$13;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncherSettings;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    .line 397
    .local v0, pm:Landroid/content/pm/PackageManager;
    const-string v1, "com.nemustech.regina.weatherserver"

    invoke-static {v0, v1, v5}, Lcom/nemustech/regina/RUtils;->existPackage(Landroid/content/pm/PackageManager;Ljava/lang/String;I)Z

    move-result v1

    if-ne v1, v6, :cond_0

    .line 398
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncherSettings$13;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.DELETE"

    const-string v4, "package:com.nemustech.regina.weatherserver"

    invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->startActivity(Landroid/content/Intent;)V

    .line 402
    :cond_0
    const-string v1, "com.nemustech.regina.theme"

    invoke-static {v0, v1, v5}, Lcom/nemustech/regina/RUtils;->existPackage(Landroid/content/pm/PackageManager;Ljava/lang/String;I)Z

    move-result v1

    if-ne v1, v6, :cond_1

    .line 403
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncherSettings$13;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.DELETE"

    const-string v4, "package:com.nemustech.regina.theme"

    invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->startActivity(Landroid/content/Intent;)V

    .line 407
    :cond_1
    const-string v1, "com.nemustech.regina.apps.weather"

    invoke-static {v0, v1, v5}, Lcom/nemustech/regina/RUtils;->existPackage(Landroid/content/pm/PackageManager;Ljava/lang/String;I)Z

    move-result v1

    if-ne v1, v6, :cond_2

    .line 408
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncherSettings$13;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.DELETE"

    const-string v4, "package:com.nemustech.regina.apps.weather"

    invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->startActivity(Landroid/content/Intent;)V

    .line 412
    :cond_2
    const-string v1, "com.nemustech.regina.apps.tasks"

    invoke-static {v0, v1, v5}, Lcom/nemustech/regina/RUtils;->existPackage(Landroid/content/pm/PackageManager;Ljava/lang/String;I)Z

    move-result v1

    if-ne v1, v6, :cond_3

    .line 413
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncherSettings$13;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.DELETE"

    const-string v4, "package:com.nemustech.regina.apps.tasks"

    invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->startActivity(Landroid/content/Intent;)V

    .line 417
    :cond_3
    const-string v1, "com.nemustech.regina"

    invoke-static {v0, v1, v5}, Lcom/nemustech/regina/RUtils;->existPackage(Landroid/content/pm/PackageManager;Ljava/lang/String;I)Z

    move-result v1

    if-ne v1, v6, :cond_4

    .line 418
    iget-object v1, p0, Lcom/nemustech/regina/ReginaLauncherSettings$13$1;->this$1:Lcom/nemustech/regina/ReginaLauncherSettings$13;

    iget-object v1, v1, Lcom/nemustech/regina/ReginaLauncherSettings$13;->this$0:Lcom/nemustech/regina/ReginaLauncherSettings;

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.DELETE"

    const-string v4, "package:com.nemustech.regina"

    invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncherSettings;->startActivity(Landroid/content/Intent;)V

    .line 421
    :cond_4
    return-void
.end method
